package com.icss.train_sys_back.service.train_manage;

import com.icss.train_sys_back.entity.SeatEntity;
import com.icss.train_sys_back.entity.train_manage.TrainCarriageEntity;
import com.icss.train_sys_back.entity.train_manage.TrainEntity;

import java.util.List;

/**
 * @Author 小泽
 * @createTime 2025/9/25 16:35
 */
public interface TrainCarriageManageService {
    //车厢列表+分页+条件查询（如果有）
    List<TrainCarriageEntity> findListConditions(String trainNumber, String carriageNumber, Integer carriageType);

    //车厢添加
    boolean add(TrainCarriageEntity trainCarriage);

    //加载车辆的车辆号
    List<TrainEntity> findTrainList();

    //车厢更新
    boolean update(TrainCarriageEntity trainCarriage);
    //根据 id 删除车厢
    boolean delete(Integer id);
    //获取所有车厢 类型
    List<TrainCarriageEntity> getAllCarriageTypes();

    //添加座位
    void addSeats(List<SeatEntity> seatEntityList);

    //添加车厢
    void addCarriages(List<TrainCarriageEntity> carriageEntityList);
}
